package cn.com.wantools.module.nas.model;

import com.jfinal.plugin.activerecord.Page;
import lombok.Data;

import java.util.List;

@Data
public class PageExt<T> extends Page<T> {
    private String nextContinuationToken;

    private boolean truncted;

    public PageExt(List<T> list, Integer pageIndex, Integer pageSize, int totalPage, Integer totalSize, String nextContinuationToken) {
        super(list, pageIndex, pageSize, totalPage, totalSize);
        this.nextContinuationToken = nextContinuationToken;
    }

    public PageExt(List<T> list, Integer pageIndex, Integer pageSize, int totalPage, Integer totalSize, String nextContinuationToken, boolean truncted) {
        super(list, pageIndex, pageSize, totalPage, totalSize);
        this.nextContinuationToken = nextContinuationToken;
        this.truncted = truncted;
    }
}
